 

#region Copyright Statement
//////////////////////////////////////////////
//	ORMAC
//  By: Ali Ghomi (2011)
//////////////////////////////////////////////
#endregion

#region using
using System;
using System.Collections.Generic;
using ORMAC;
using ORMAC.Attributes;
using System.Runtime.Serialization;
#endregion

namespace Test
{
	/// <summary>
	/// Auto generated class by ORMAC from Territories table
	/// </summary>
	[Table("Territories")]
	[DataContract]
	public class OTerritories
	{
		/// <summary>
		/// Auto generated property by ORMAC from TerritoryID column
		/// </summary>		
		[PrimaryKey]
		[Field("TerritoryID")]
		[DataMember]
		public string TerritoryID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from TerritoryDescription column
		/// </summary>		
		[Field("TerritoryDescription")]
		[DataMember]
		public string TerritoryDescription{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from RegionID column
		/// </summary>		
		[Field("RegionID")]
		[DataMember]
		public int RegionID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated class property by ORMAC using
		///RegionID as foreign key and RegionID as primary key in  Region table
		/// </summary>				
		[DataMember]
		[Join(ParentCol="RegionID",ChildCol="RegionID")]
		public ORegion Region {
			get;
			set;
		}
		[DataMember]
		[LinkTable(LinkTableName="EmployeeTerritories", ParentCol="TerritoryID",LinkTableParentCol="TerritoryID",LinkTableChildCol="EmployeeID",ChildCol="EmployeeID")]		
		public List<OEmployees> Employeess{
			get;
			set;
		}

	}
}
